package com.ByteDance.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 视频表
 * </p>
 *
 * @author 朱哥
 * @since 2024-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("video")
@ApiModel(value="Video对象", description="视频表")
public class VideoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频主键id")
    @TableId(value = "video_id", type = IdType.AUTO)
    private Integer videoId;

    @ApiModelProperty(value = "用户id")
    private Integer authorId;

    @ApiModelProperty(value = "视频播放地址")
    private String playUrl;

    @ApiModelProperty(value = "视频封面地址")
    private String coverUrl;

    @ApiModelProperty(value = "视频的点赞总数")
    private Integer favoriteCount;

    @ApiModelProperty(value = "视频的评论总数")
    private Integer commentCount;

    @ApiModelProperty(value = "视频标题")
    private String title;

    @ApiModelProperty(value = "视频发布时间")
    private Timestamp publishTime;

}
